Skip to content

Send players back to their lobby on match end#715

Draft
toberge wants to merge 2 commits intodevfrom
feature/lobby-persistence
Draft

Send players back to their lobby on match end#715
toberge wants to merge 2 commits intodevfrom
feature/lobby-persistence

Conversation

@toberge
Copy link
Copy Markdown
Contributor

@toberge toberge commented Jun 8, 2024

Closes #714

@toberge toberge marked this pull request as draft June 8, 2024 11:34
@toberge toberge force-pushed the feature/lobby-persistence branch from c96148d to 2bdc099 Compare June 8, 2024 13:05
// Mirror pulls us to the main menu automatically
NetworkManager.singleton.StopHost();
if (isServer)
NetworkManager.singleton.ServerChangeScene(Scenes.Menu);
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should turn this into server changing scene to menu and clients changing to client lobby

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Take a look at this (do non additive):
conn.Send(new SceneMessage() { sceneName = msg.sceneName, sceneOperation = SceneOperation.LoadAdditive });

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

Lobby persistence

1 participant